package com.thb.pay.api.merchant.fallback;

import com.thb.pay.api.merchant.MchPayChannelServiceApi;
import com.thb.pay.api.merchant.vo.req.MchPayChannelPageReq;
import com.thb.pay.api.merchant.vo.req.MchPayChannelReq;
import com.thb.pay.api.merchant.vo.resp.MchPayChannelVo;
import com.thb.pay.core.utils.PageResult;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Slf4j
@Component
public class MchPayChannelServiceApiFallbackFactory implements FallbackFactory<MchPayChannelServiceApi> {


    @Override
    public MchPayChannelServiceApi create(Throwable throwable) {
        return new MchPayChannelServiceApi() {
            @Override
            public PageResult<MchPayChannelVo> findPage(MchPayChannelPageReq pageReq) {
                return null;
            }

            @Override
            public List<MchPayChannelVo> findAllList() {
                return null;
            }

            @Override
            public List<MchPayChannelVo> findListByMerchantId(Long merchantId) {
                return null;
            }

            @Override
            public MchPayChannelVo getByMerchantIdAndProductId(Long merchantId, Long productId) {
                return null;
            }

            @Override
            public List<MchPayChannelVo> findListByIds(List<Long> ids) {
                return null;
            }

            @Override
            public MchPayChannelVo getById(Long id) {
                return null;
            }

            @Override
            public void add(MchPayChannelReq mchPayChannelReq) {

            }

            @Override
            public void update(MchPayChannelReq mchPayChannelReq) {

            }

            @Override
            public void deleteBatchIds(List<Long> ids) {

            }
        };
    }
}